package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 美食对象 tourism_food
 *
 * @author gqd
 * @date 2020-12-25
 */
public class TourismFood extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 美食主键 */
    private Integer id;

    /** 美食图片 */
    @Excel(name = "美食图片")
    private String foodPicture;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String foodName;

    /** 标签 */
    @Excel(name = "标签")
    private String foodLabel;

    /** 菜品介绍 */
    private String foodIntroduce;

    /** 精选状态 */
    @Excel(name = "精选状态")
    private String foodStatus;

    /** 餐厅主键（外键） */
    @Excel(name = "餐厅主键", readConverterExp = "外=键")
    private Integer restaurantId;

    /** 餐厅主键（外键） */
    @Excel(name = "餐厅名称", readConverterExp = "外=键")
    private String ResName;

    /**
     * 餐厅名称
     */
    private String restaurantName;

    /**
     * 营业开始时间
     */
    private String openHours;

    /**
     * 营业结束时间
     */
    private String clearHours;

    /**
     * 餐厅地址
     */
    private String restaurantAddress;

    /**
     * 餐厅电话
     */
    private String restaurantPhone;

    private String flag;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setFoodPicture(String foodPicture)
    {
        this.foodPicture = foodPicture;
    }

    public String getFoodPicture()
    {
        return foodPicture;
    }
    public void setFoodName(String foodName)
    {
        this.foodName = foodName;
    }

    public String getFoodName()
    {
        return foodName;
    }
    public void setFoodLabel(String foodLabel)
    {
        this.foodLabel = foodLabel;
    }

    public String getFoodLabel()
    {
        return foodLabel;
    }
    public void setFoodIntroduce(String foodIntroduce)
    {
        this.foodIntroduce = foodIntroduce;
    }

    public String getFoodIntroduce()
    {
        return foodIntroduce;
    }
    public void setFoodStatus(String foodStatus)
    {
        this.foodStatus = foodStatus;
    }

    public String getFoodStatus()
    {
        return foodStatus;
    }
    public void setRestaurantId(Integer restaurantId)
    {
        this.restaurantId = restaurantId;
    }
    @NotBlank(message = "请从餐馆列表添加美食")
    @Size(min = 0, max = 20)
    public Integer getRestaurantId()
    {
        return restaurantId;
    }


    public String getResName() {
        return ResName;
    }

    public void setResName(String resName) {
        ResName = resName;
    }

    public String getRestaurantName() {
        return restaurantName;
    }

    public void setRestaurantName(String restaurantName) {
        this.restaurantName = restaurantName;
    }

    public String getOpenHours() {
        return openHours;
    }

    public void setOpenHours(String openHours) {
        this.openHours = openHours;
    }

    public String getClearHours() {
        return clearHours;
    }

    public void setClearHours(String clearHours) {
        this.clearHours = clearHours;
    }

    public String getRestaurantAddress() {
        return restaurantAddress;
    }

    public void setRestaurantAddress(String restaurantAddress) {
        this.restaurantAddress = restaurantAddress;
    }

    public String getRestaurantPhone() {
        return restaurantPhone;
    }

    public void setRestaurantPhone(String restaurantPhone) {
        this.restaurantPhone = restaurantPhone;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("foodPicture", getFoodPicture())
            .append("foodName", getFoodName())
            .append("foodLabel", getFoodLabel())
            .append("foodIntroduce", getFoodIntroduce())
            .append("foodStatus", getFoodStatus())
            .append("restaurantId", getRestaurantId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
             .append("resName", getResName())
            .toString();
    }
}
